class LoginResp {
  bool _admin;
  String _email;
  String _icon;
  int _id;
  String _nickname;
  String _password;
  String _publicName;
  String _token;
  String _username;

  bool get admin => _admin;

  String get email => _email;

  String get icon => _icon;

  int get id => _id;

  String get nickname => _nickname;

  String get password => _password;

  String get publicName => _publicName;

  String get token => _token;

  String get username => _username;

  LoginResp(
      {bool admin,
      String email,
      String icon,
      int id,
      String nickname,
      String password,
      String publicName,
      String token,
      String username}) {
    _admin = admin;
    _email = email;
    _icon = icon;
    _id = id;
    _nickname = nickname;
    _password = password;
    _publicName = publicName;
    _token = token;
    _username = username;
  }

  LoginResp.fromJson(dynamic json) {
    _admin = json["admin"];
    _email = json["email"];
    _icon = json["icon"];
    _id = json["id"];
    _nickname = json["nickname"];
    _password = json["password"];
    _publicName = json["publicName"];
    _token = json["token"];
    _username = json["username"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["admin"] = _admin;
    map["email"] = _email;
    map["icon"] = _icon;
    map["id"] = _id;
    map["nickname"] = _nickname;
    map["password"] = _password;
    map["publicName"] = _publicName;
    map["token"] = _token;
    map["username"] = _username;
    return map;
  }
}
